//
//  HLIMKitSystemMessageModel.m
//  YueYue
//
//  Created by hulu001 on 2024/1/11.
//

#import "HLIMKitSystemMessageModel.h"

@implementation HLIMKitSystemMessageModel


- (CGSize)contentSize
{
    if (CGSizeEqualToSize(_contentSize, CGSizeZero))
    {
        _contentSize = [self.msg?:@"未知的系统消息" boundingRectWithSize:CGSizeMake(UIScreen.mainScreen.bounds.size.width*0.7, 100) options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:14]} context:nil].size;
    }
    return _contentSize;
}

- (CGFloat)height
{
    return self.contentSize.height + 40;
}


@end
